package com.guigu.www.cxk.service.imp;

import com.guigu.www.cxk.service.CXKInterventionService;
import com.guigu.www.mapper.InterventionMapper;
import com.guigu.www.mapper.TemplateFoodMapper;
import com.guigu.www.mapper.TemplateKeepMapper;
import com.guigu.www.mapper.TemplateWholesomeDetailsMapper;
import com.guigu.www.pojo.Intervention;
import com.guigu.www.pojo.TemplateFood;
import com.guigu.www.pojo.TemplateKeep;
import com.guigu.www.pojo.TemplateWholesomeDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CXKInterventionServiceImpl implements CXKInterventionService {
    @Autowired
    InterventionMapper interventionMapper;

    @Autowired
    TemplateWholesomeDetailsMapper templateWholesomeDetailsMapper;

    @Autowired
    TemplateKeepMapper templateKeepMapper;

    @Autowired
    TemplateFoodMapper templateFoodMapper;

    @Override
    public Intervention selecthealth(int nid) {
        return interventionMapper.selecthealth(nid);
    }

    @Override
    public List<TemplateWholesomeDetails> selectWid(int wid) {
        return templateWholesomeDetailsMapper.selectWid(wid);
    }

    @Override
    public List<TemplateKeep> selectKid(int kid) {
        return templateKeepMapper.selectKid(kid);
    }

    @Override
    public List<TemplateFood> selectFid(int fid) {
        return templateFoodMapper.selectFid(fid);
    }
}
